<%@ page import="com.blandware.atleap.webapp.taglib.core.util.TaglibConstants"%>
<%@ include file="/WEB-INF/pages/common/taglibs.jsp" %>
<html:html xhtml="true">
    <head>
        <script type="text/javascript">
            function returnToOpener() {
                var createdContentResource = ${requestScope.createdContentResource ? 'true' : 'false'};
                var openerExists = window.opener != null;
                if (createdContentResource && openerExists) {
                    window.opener.fireResourceCreated("${requestScope.createdContentResourceUri}");
                    window.close();
                } else if (openerExists) {
                    window.opener.focus();
                    window.close();
                } else {
                    window.close();
                }
            }
        </script>
    <head>

    <body onLoad="returnToOpener();">
    </body>
</html:html>